package com.morningstar.system.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件操作接口
 */
public interface FileOperate {

    String upload(MultipartFile file) throws Exception;

    String preview(String fileName);

    void download(String fileName, HttpServletResponse res);

    void remove(String fileName) throws Exception;

    /**
     * 获取URL 前缀
     */
    String getUrlPrefix();
}
